package com.shh.aiojbackendserver.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName user_solved_problems
 */
@TableName(value ="user_solved_problems")
@Data
public class UserSolvedProblems implements Serializable {
    /**
     * 用户id
     */
    @TableId(value = "userId", type = IdType.INPUT) // 复合主键需要指定 IdType.INPUT
    private Long userId;

    /**
     * 题目id
     */
    private Long problemId;

    /**
     * 第一次解决时间
     */
    private Date firstSolvedTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}